package com.ruoyi.bookkeeping.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.bookkeeping.domain.BookAsset;
import com.ruoyi.bookkeeping.domain.BookDynamic;
import com.ruoyi.bookkeeping.domain.BookDynamicReply;
import com.ruoyi.bookkeeping.domain.param.AddBookDynamicReplyParam;
import com.ruoyi.bookkeeping.domain.vo.BookDynamicReplyVo;

/**
 * 动态回复Service接口
 * 
 * @author ruoyi
 * @date 2023-02-24
 */
public interface IBookDynamicReplyService extends IService<BookDynamicReply>
{


    /**
     * 动态评论回复
     * @param dynamicId
     * @return
     */
    public List<BookDynamicReplyVo> selectBookDynamicReplyVoList(Long dynamicId,Long userId);

    /**
     * 新增动态回复
     * @param addBookDynamicReplyParam
     * @param userId
     * @return
     */
    public int insertBookDynamicReply(AddBookDynamicReplyParam addBookDynamicReplyParam,Long userId);

    /**
     * 删除动态回复信息
     * 
     * @param dynamicReplyId 动态回复主键
     * @return 结果
     */
    public int deleteBookDynamicReplyByDynamicReplyId(Long dynamicReplyId,Long userId);

    int goodBookDynamic(Long dynamicReplyId, Long userId, Long goodOrCancle);
}
